package cn.wolfcode.rbac.web.controller;

import cn.wolfcode.rbac.service.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * @Description TODO
 * @ClassName LoginController
 * @Author luhui
 * @date 2020.06.14 02:59
 * @version: 1.0
 */
@Controller
public class LoginoutController {

    @Autowired
    private IEmployeeService employeeService;

    @RequestMapping("/logout")
    public String login(HttpSession session){
        session.invalidate();
        return "redirect:/login.jsp";
    }
}